﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="DonVi.aspx.cs" Inherits="XuaNhapKho.DonVi" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="breadLine">
        <ul class="breadcrumb">
            <li><a href="#">Hệ thống quản lý xuất nhập kho</a> <span class="divider">></span></li>
            <li class="active">Xuất kho</li>
        </ul>
    </div>
    <div class="workplace">
        <div class="row-fluid">
            <div class="span4">
                <div class="head">
                    <div class="isw-grid">
                    </div>
                    <h1>
                        Thông tin đơn vị</h1>
                    <div class="clear">
                    </div>
                </div>
                <div class="block-fluid">
                    <div class="row-form">
                        <div class="span3">
                                Đơn vị:
                        </div>
                        <div class="span9">
                            <asp:TextBox ID="txtDonVi" placeholder="đơn vị tính..." runat="server"></asp:TextBox> </div>
                        <div class="clear">
                        </div>
                    </div>
                    
                    <div class="row-form">
                        <div class="span3">
                            Số lượng:
                        </div>
                        <div class="span9">
                             <asp:TextBox ID="txtSoLuong" placeholder="số lượng tính..." runat="server"></asp:TextBox>
                        </div>
                        <div class="clear">
                        </div>
                    </div>
                    <div class="row-form">
                        <div class="span3">
                          
                        </div>
                        <div class="span9">
                            <asp:Button  class="btn" Height="30px" ID="btnSave" runat="server" 
                                Text="Lưu lại" onclick="btnSave_Click"  />
                            <button class="btn" >Hủy bỏ</button>
                        </div>
                        <div class="clear">
                        </div>
                    </div>

                </div>
            </div>
            <div class="span8">
                <div class="head">
                    <div class="isw-grid">
                    </div>
                    <h1>
                        Danh sách đơn vị</h1>
                    <div class="clear">
                    </div>
                </div>
                <div class="block-fluid">
                    <asp:GridView CssClass="table" ID="grvDonVi" runat="server" 
                        AutoGenerateColumns="False" BorderStyle="None" GridLines="None" 
                        AllowPaging="True" onpageindexchanging="grvDonVi_PageIndexChanging">
                        <Columns>
                            <asp:BoundField DataField="TenDonVi" HeaderText="Tên đơn vị tính">
                            <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="GiaTri" HeaderText="Giá trị đơn vị">
                            <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="Hành động">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lbtnEdit" runat="server" 
                                        CommandArgument='<%# Eval("MaDonVi") %>' oncommand="lbtnEdit_Command">Sửa</asp:LinkButton>
                                    &nbsp;|
                                    <asp:LinkButton ID="lbtnRemove" runat="server" 
                                        CommandArgument='<%# Eval("MaDonVi") %>' OnClientClick="return confirm('Bạn có thực sự muốn xóa không ?')" oncommand="lbtnRemove_Command">Xóa</asp:LinkButton>
                                </ItemTemplate>
                                <ItemStyle Width="100px" HorizontalAlign="Center" />
                            </asp:TemplateField>
                        </Columns>
                        <PagerStyle HorizontalAlign="Center" />
                    </asp:GridView>
                   
                </div>
            </div>
        </div>

</asp:Content>
